﻿using System;
using System.Collections.Generic;

namespace JoyfulHomeJourney.BackEnd.Infrastructure.EFCore
{
    public partial class SysProducts
    {
        public SysProducts()
        {
            OfflineOrderDetails = new HashSet<OfflineOrderDetails>();
            OfflineShoppingCars = new HashSet<OfflineShoppingCars>();
            OrderDetails = new HashSet<OrderDetails>();
            PointsProducts = new HashSet<PointsProducts>();
            ProductReviews = new HashSet<ProductReviews>();
            ShoppingCars = new HashSet<ShoppingCars>();
            SysCarServices = new HashSet<SysCarServices>();
            SysCarSupplies = new HashSet<SysCarSupplies>();
            SysVipPackages = new HashSet<SysVipPackages>();
        }

        public string PId { get; set; }
        public string PCsId { get; set; }
        public string PName { get; set; }
        public string PBrand { get; set; }
        public string PDescription { get; set; }
        public string PImages { get; set; }
        public decimal PPrice { get; set; }
        public int PDiscount { get; set; }
        public decimal PDeduction { get; set; }
        public int? PStockQuantity { get; set; }
        public int PSaleCount { get; set; }
        public decimal PSaleSum { get; set; }
        public decimal? PRating { get; set; }
        public string PCategory { get; set; }
        public DateTime? PCreateAt { get; set; }
        public DateTime? PUpdateAt { get; set; }

        public virtual Dictionarys PBrandNavigation { get; set; }
        public virtual SysCarShops PCs { get; set; }
        public virtual ICollection<OfflineOrderDetails> OfflineOrderDetails { get; set; }
        public virtual ICollection<OfflineShoppingCars> OfflineShoppingCars { get; set; }
        public virtual ICollection<OrderDetails> OrderDetails { get; set; }
        public virtual ICollection<PointsProducts> PointsProducts { get; set; }
        public virtual ICollection<ProductReviews> ProductReviews { get; set; }
        public virtual ICollection<ShoppingCars> ShoppingCars { get; set; }
        public virtual ICollection<SysCarServices> SysCarServices { get; set; }
        public virtual ICollection<SysCarSupplies> SysCarSupplies { get; set; }
        public virtual ICollection<SysVipPackages> SysVipPackages { get; set; }
    }
}
